<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <link rel="stylesheet" type="text/css" media="screen" href="../css/moneyctrl.css" />
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../font/font_ryhg6r9u3ji/iconfont.css">
    <link rel="stylesheet" href="./DomesticDiscount/css/skin.css">
</head>
<body>
    <!-- 头部部分 -->
    <header>
        <a href="../index.html" class="iconfont icon-left">  </a>
        <div class="header_text">省钱控 - 最新优惠</div>
        <a href="javascript:;">
            <img src="../images/header_app.png" alt="">
        </a>
    </header>
    <!-- 内容部分 -->
    <div class="content">
        <!-- <div>
            <img src="../images/yundou.jpg" alt="">
            <div>
                <a href="javascript:;">HG 华光 QH0190 手持电熨斗
                    <span>39元包邮（99-60）</span>
                </a>
                
                <span>天猫旗舰店丨10-25 13:11
                    <a href="javascript:;" class="iconfont icon-pinglun"> 4</a>
                </span>
               
            </div>
        </div> -->
    </div>
    <!-- 分页面部分 -->
    <div class="paging">
        <a href="javascript:;">上一页</a>
        <!-- 下拉列表 -->
       <!-- <select name="tony" id="page">1</select> -->
       <div id="page">1</div>
        <a href="javascript:;">下一页</a>
    </div>
    <!-- 面包屑部分 -->
    <div class="crumbs">
        <a href="../index.html">首页</a>
        <a href="javascript:;">省钱控</a>

        <!-- 首页 &nbsp;&nbsp; 省钱控 -->
    </div>
    <!-- <ul id="breadcrumb">
        <li><a href="javascript:;"><span class="icon icon-home"> </span></a></li>
        <li><a href="javascript:;"><span class="icon icon-beaker"> </span>省钱控</a></li>
        <li><a href="javascript:;"><span class="icon icon-double-angle-right"></span>详情</a></li> -->
        <!-- <li><a href="#"><span class="icon icon-rocket"> </span> Getting started</a></li>
        <li><a href="#"><span class="icon icon-arrow-down"> </span> Download</a></li>
        <li><a href="#"><span class="icon icon-arrow-down"> </span> Download</a></li> 
     </ul>  -->
    <!-- 固定app下载 -->
    <div class="app_del">
        <img src="../images/apphuan.png" alt="">

    </div>
    <!-- 底部部分 -->
    <footer>
        <div class="guild">
            <a href="javascript:;">登录</a>
            <a href="javascript:;">注册</a>
            <a href="javascript:;" class="back">返回顶部</a>
        </div>
        <div class="copyright clearfix">
            <a href="javascript:;">手机APP下载</a>
            <a href="javascript:;">慢慢买手机版</a>
            <a href="javascript:;"> -- 掌上比价平台</a> 
            <a href="javascript:;">www.MileHighClub.com</a>
        </div>
    </footer>
</body>
    <!-- 渲染省钱控数据 -->
    <script type="text/template" id="postsListTmp">
      {{each result }}
        <div>
           {{@ $value.productImg2}}
            <div>
                <a href="DomesticDiscount/DomesticDiscount.html?productId={{$value.productId}}">{{ $value.productName}}
                    <span>{{ $value.productPinkage}}</span>
                </a>
                
                <span>{{ $value.productFrom}}丨{{ $value.productTime}}
                    <a href="javascript:;" class="iconfont icon-pinglun">{{$value.productComCount}}</a>
                </span>
               
            </div>
        </div>
      {{/each}}
    </script>
<!-- <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> -->
<script src="../lib/jquery.js"></script>
<script src="../lib/art-template/template-web.js"></script>
<script src="../js/moneyctrl.js"></script>
<script src="../js/skin.js"></script>
</html>

<script>
  $.ajax({
    type: 'get',
    url: 'http://193.112.55.79:9090/api/getmoneyctrl',
    dataType: 'json',
    success:function(res){
        console.log(res);
        
        // var d = mun

        var htmlStr = template('postsListTmp',res);
        // console.log(htmlStr);
        $('.content').html(htmlStr);
        // var res = /\d/;
        // var d = res.result[0].productCity;

        // console.log(d);
    }
  })
</script>
